import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class RoomModel {
    constructor() {
        this.url = BaseUrl
    }

    all = (params) => {
        let end = this.url + 'getusercreatevipbox'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    count = (params) => {
        let end = this.url + 'getusercreatevipboxcount'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    votes = (params) => {
        let end = this.url + 'getboxvote'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    vote = (params) => {
        let end = this.url + 'getuservotepage'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    delete = (params) => {
        let end = this.url + 'delboxvote'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default RoomModel